﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ReAnimation.Infrastructure.Services.Interfaces;
using System.Drawing;


namespace ReAnimation.Infrastructure.Services
{
    public class ApplicationSettingsService: IApplicationSettings
    {
        #region IApplicationSettings Members

        public virtual string FfmpegParams
        {
            get
            {
                return ApplicationSettings.Default.ffmpegParams;
            }
            set
            {
                ApplicationSettings.Default.ffmpegParams = value;
                ApplicationSettings.Default.Save();
            }
        }

        public virtual string PovRayPath
        {
            get
            {
                return ApplicationSettings.Default.povrayPath;
            }
            set
            {
                ApplicationSettings.Default.povrayPath = value;
                ApplicationSettings.Default.Save();
            }
        }

        public virtual string PovRayParams
        {
            get
            {
                return ApplicationSettings.Default.povrayParams;
            }
            set
            {
                ApplicationSettings.Default.povrayParams = value;
                ApplicationSettings.Default.Save();
            }
        }

        public virtual System.Drawing.Color BackgroundColor
        {
            get
            {
                return ApplicationSettings.Default.backgroundColor;
            }
            set
            {
                ApplicationSettings.Default.backgroundColor = value;
                ApplicationSettings.Default.Save();
            }
        }

        public virtual float LineWeight
        {
            get
            {
                return ApplicationSettings.Default.lineWeight;
            }
            set
            {
                ApplicationSettings.Default.lineWeight = value;
                ApplicationSettings.Default.Save();
            }
        }

        public virtual Color LinkColor
        {
            get
            {
                return ApplicationSettings.Default.linkColor;
            }
            set
            {
                ApplicationSettings.Default.linkColor = value;
                ApplicationSettings.Default.Save();
            }
        }

        #endregion
    }
}
